package com.kuaidi100.sdk.response.ThirdPlatform;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @Author: ligl
 * @Date: 2022-02-17 15:49
 */
public class TaskDetails {
    /**
     * 任务编码
     */
    private String taskId;
    /**
     * 订单更新的最小时间，格式：yyyy-MM-dd HH:mm:ss
     */
    private String updateAtMin;
    /**
     * 订单更新的最大时间，格式：yyyy-MM-dd HH:mm:ss
     */
    private String updateAtMax;

    @Override
    public String toString() {
        try {
            ObjectMapper objectMapper = new ObjectMapper();
            return objectMapper.writeValueAsString(this);
        } catch (Exception e) {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("taskId", taskId)
                    .append("updateAtMin", updateAtMin)
                    .append("updateAtMax", updateAtMax)
                    .toString();
        }
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getUpdateAtMin() {
        return updateAtMin;
    }

    public void setUpdateAtMin(String updateAtMin) {
        this.updateAtMin = updateAtMin;
    }

    public String getUpdateAtMax() {
        return updateAtMax;
    }

    public void setUpdateAtMax(String updateAtMax) {
        this.updateAtMax = updateAtMax;
    }
}
